<span>
  {{ 'Details for' | translate }}
  {{ user().username }}
</span>

<div class="user-actions">
  @if (user().local) {
    <button
      mat-button
      [ixTest]="['edit-user', user().full_name]"
      (click)="doEdit()"
    >
      {{ 'Edit' | translate }}
    </button>
  }

  @if (!user().immutable && loggedInUser().pw_name !== user().username) {
    <button
      *ixRequiresRoles="[Role.AccountWrite]"
      mat-button
      [ixTest]="['delete', user().username]"
      (click)="doDelete()"
    >
      <span>{{ 'Delete' | translate }}</span>
    </button>
  }
</div>
